﻿Imports System.ComponentModel

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class ucCertificationRequirementList
    Inherits System.Windows.Forms.UserControl

#Region "Designer"
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()

			me.CertificationRequirementId = new DataGridViewTextBoxColumn
	me.CertificationTypeId = new DataGridViewComboBoxColumn
	me.LessonId = new DataGridViewComboBoxColumn
	me.IsActive = new DataGridViewCheckBoxColumn
	me.CreateDate = new DataGridViewCalendarColumn
	me.UpdateDate = new DataGridViewCalendarColumn
	me.CreateUser = new DataGridViewTextBoxColumn
	me.UpdateUser = new DataGridViewTextBoxColumn
	me.IsOptional = new DataGridViewCheckBoxColumn
	me.LessonIdAlternative = new DataGridViewComboBoxColumn
	me.LessonIdAlternative1 = new DataGridViewTextBoxColumn

        Me.grdCertificationRequirement = New org.codegen.win.controls.Grid.CGSQLGrid()
        Me.SuspendLayout()
        '
        'grdCertificationRequirement
        '
        Me.grdCertificationRequirement.Dock = System.Windows.Forms.DockStyle.Fill
        Me.grdCertificationRequirement.gpEditForm = "Forms.Edit.frmCertificationRequirementDetails"
        Me.grdCertificationRequirement.gpSelectFields = "*"
        Me.grdCertificationRequirement.gpSelectFrom = "CertificationRequirement"
        
        Me.grdCertificationRequirement.GridColumnProvider = Nothing
        Me.grdCertificationRequirement.gpKeyColumnName = "CertificationRequirementId"
        Me.grdCertificationRequirement.Location = New System.Drawing.Point(0, 0)
        Me.grdCertificationRequirement.Name = "grdCertificationRequirement"
        Me.grdCertificationRequirement.Size = New System.Drawing.Size(573, 262)
        Me.grdCertificationRequirement.TabIndex = 0

			' column: CertificationRequirementId
	CertificationRequirementId.CellTemplate = New DataGridViewTextBoxCell
	CertificationRequirementId.Name = "CertificationRequirementId"
	CertificationRequirementId.DataPropertyName = "CertificationRequirementId"
	CertificationRequirementId.ReadOnly = True
	CertificationRequirementId.HeaderText = "CertificationRequirementId"
	CertificationRequirementId.HeaderCell.value = "CertificationRequirementId"
	CertificationRequirementId.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight
	CertificationRequirementId.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopRight
	CertificationRequirementId.Width = 50
	CertificationRequirementId.Visible = False
	'**** End Setup of column: CertificationRequirementId


	' column: CertificationTypeId
	CertificationTypeId.CellTemplate = New DataGridViewComboBoxCell
	CertificationTypeId.HeaderCell = New DataGridViewAutoFilterComboColumnHeaderCell
	CertificationTypeId.Name = "CertificationTypeId"
	CertificationTypeId.DataPropertyName = "CertificationTypeId"
	CertificationTypeId.ReadOnly = True
	CertificationTypeId.HeaderText = "CertificationTypeId"
	CertificationTypeId.HeaderCell.value = "CertificationTypeId"
	CertificationTypeId.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	CertificationTypeId.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	CertificationTypeId.Width = 100
	CertificationTypeId.Visible = True
	'**** End Setup of column: CertificationTypeId


	' column: LessonId
	LessonId.CellTemplate = New DataGridViewComboBoxCell
	LessonId.HeaderCell = New DataGridViewAutoFilterComboColumnHeaderCell
	LessonId.Name = "LessonId"
	LessonId.DataPropertyName = "LessonId"
	LessonId.ReadOnly = True
	LessonId.HeaderText = "LessonId"
	LessonId.HeaderCell.value = "LessonId"
	LessonId.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	LessonId.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	LessonId.Width = 100
	LessonId.Visible = True
	'**** End Setup of column: LessonId


	' column: IsActive
	IsActive.CellTemplate = New DataGridViewCheckBoxCell
	IsActive.HeaderCell = New DataGridViewAutoFilterBooleanColumnHeaderCell
	IsActive.Name = "IsActive"
	IsActive.DataPropertyName = "IsActive"
	IsActive.ReadOnly = True
	IsActive.HeaderText = "IsActive"
	IsActive.HeaderCell.value = "IsActive"
	IsActive.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
	IsActive.HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
	IsActive.Width = 100
	IsActive.Visible = True
	'**** End Setup of column: IsActive


	' column: CreateDate
	CreateDate.CellTemplate = New CalendarCell
	CreateDate.Name = "CreateDate"
	CreateDate.DataPropertyName = "CreateDate"
	CreateDate.ReadOnly = True
	CreateDate.HeaderText = "CreateDate"
	CreateDate.HeaderCell.value = "CreateDate"
	CreateDate.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	CreateDate.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	CreateDate.Width = 100
	CreateDate.Visible = True
	CreateDate.CellTemplate.Style.Format = "d"
	'**** End Setup of column: CreateDate


	' column: UpdateDate
	UpdateDate.CellTemplate = New CalendarCell
	UpdateDate.Name = "UpdateDate"
	UpdateDate.DataPropertyName = "UpdateDate"
	UpdateDate.ReadOnly = True
	UpdateDate.HeaderText = "UpdateDate"
	UpdateDate.HeaderCell.value = "UpdateDate"
	UpdateDate.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	UpdateDate.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	UpdateDate.Width = 100
	UpdateDate.Visible = True
	UpdateDate.CellTemplate.Style.Format = "d"
	'**** End Setup of column: UpdateDate


	' column: CreateUser
	CreateUser.CellTemplate = New DataGridViewTextBoxCell
	CreateUser.Name = "CreateUser"
	CreateUser.DataPropertyName = "CreateUser"
	CreateUser.ReadOnly = True
	CreateUser.HeaderText = "CreateUser"
	CreateUser.HeaderCell.value = "CreateUser"
	CreateUser.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	CreateUser.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	CreateUser.Width = 100
	CreateUser.Visible = True
	'**** End Setup of column: CreateUser


	' column: UpdateUser
	UpdateUser.CellTemplate = New DataGridViewTextBoxCell
	UpdateUser.Name = "UpdateUser"
	UpdateUser.DataPropertyName = "UpdateUser"
	UpdateUser.ReadOnly = True
	UpdateUser.HeaderText = "UpdateUser"
	UpdateUser.HeaderCell.value = "UpdateUser"
	UpdateUser.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	UpdateUser.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	UpdateUser.Width = 100
	UpdateUser.Visible = True
	'**** End Setup of column: UpdateUser


	' column: IsOptional
	IsOptional.CellTemplate = New DataGridViewCheckBoxCell
	IsOptional.HeaderCell = New DataGridViewAutoFilterBooleanColumnHeaderCell
	IsOptional.Name = "IsOptional"
	IsOptional.DataPropertyName = "isOptional"
	IsOptional.ReadOnly = True
	IsOptional.HeaderText = "IsOptional"
	IsOptional.HeaderCell.value = "IsOptional"
	IsOptional.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
	IsOptional.HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
	IsOptional.Width = 100
	IsOptional.Visible = True
	'**** End Setup of column: IsOptional


	' column: LessonIdAlternative
	LessonIdAlternative.CellTemplate = New DataGridViewComboBoxCell
	LessonIdAlternative.HeaderCell = New DataGridViewAutoFilterComboColumnHeaderCell
	LessonIdAlternative.Name = "LessonIdAlternative"
	LessonIdAlternative.DataPropertyName = "LessonIdAlternative"
	LessonIdAlternative.ReadOnly = True
	LessonIdAlternative.HeaderText = "LessonIdAlternative"
	LessonIdAlternative.HeaderCell.value = "LessonIdAlternative"
	LessonIdAlternative.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft
	LessonIdAlternative.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopLeft
	LessonIdAlternative.Width = 100
	LessonIdAlternative.Visible = True
	'**** End Setup of column: LessonIdAlternative


	' column: LessonIdAlternative1
	LessonIdAlternative1.CellTemplate = New DataGridViewTextBoxCell
	LessonIdAlternative1.Name = "LessonIdAlternative1"
	LessonIdAlternative1.DataPropertyName = "LessonIdAlternative1"
	LessonIdAlternative1.ReadOnly = True
	LessonIdAlternative1.HeaderText = "LessonIdAlternative1"
	LessonIdAlternative1.HeaderCell.value = "LessonIdAlternative1"
	LessonIdAlternative1.DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight
	LessonIdAlternative1.HeaderCell.Style.Alignment = DataGridViewContentAlignment.TopRight
	LessonIdAlternative1.Width = 50
	LessonIdAlternative1.Visible = True
	'**** End Setup of column: LessonIdAlternative1




        '
        'ucListCertificationRequirement
        '
		Me.Dock=DockStyle.Fill
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(573, 262)
        Me.Controls.Add(Me.grdCertificationRequirement)
			me.grdCertificationRequirement.Columns.Add(CertificationRequirementId)
	me.grdCertificationRequirement.Columns.Add(CertificationTypeId)
	me.grdCertificationRequirement.Columns.Add(LessonId)
	me.grdCertificationRequirement.Columns.Add(IsActive)
	me.grdCertificationRequirement.Columns.Add(CreateDate)
	me.grdCertificationRequirement.Columns.Add(UpdateDate)
	me.grdCertificationRequirement.Columns.Add(CreateUser)
	me.grdCertificationRequirement.Columns.Add(UpdateUser)
	me.grdCertificationRequirement.Columns.Add(IsOptional)
	me.grdCertificationRequirement.Columns.Add(LessonIdAlternative)
	me.grdCertificationRequirement.Columns.Add(LessonIdAlternative1)

        Me.Name = "ucCertificationRequirementList"
        Me.Text = "ucCertificationRequirementList"
        Me.ResumeLayout(False)

    End Sub

    public WithEvents grdCertificationRequirement As org.codegen.win.controls.Grid.CGSQLGrid
		Private WithEvents CertificationRequirementId As DataGridViewTextBoxColumn
	Private WithEvents CertificationTypeId As DataGridViewComboBoxColumn
	Private WithEvents LessonId As DataGridViewComboBoxColumn
	Private WithEvents IsActive As DataGridViewCheckBoxColumn
	Private WithEvents CreateDate As DataGridViewCalendarColumn
	Private WithEvents UpdateDate As DataGridViewCalendarColumn
	Private WithEvents CreateUser As DataGridViewTextBoxColumn
	Private WithEvents UpdateUser As DataGridViewTextBoxColumn
	Private WithEvents IsOptional As DataGridViewCheckBoxColumn
	Private WithEvents LessonIdAlternative As DataGridViewComboBoxColumn
	Private WithEvents LessonIdAlternative1 As DataGridViewTextBoxColumn


#End Region

#Region "Standard Code"

    ''' <summary>
    ''' On load of control, we set the event handler for delete
    ''' </summary>
	Private Sub ucListCertificationRequirement_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        
		me.setColumnDataSources()
		

    End Sub

	
    'use this method to assign datasources to columns that are combo boxes!
    protected sub setColumnDataSources
		if me.DesignMode then exit sub
			Me.CertificationTypeId.HeaderCell =  New DataGridViewAutoFilterComboColumnHeaderCell()
	me.CertificationTypeId.DataSource = new BusObjects.Mappers.CertificationTypeDBMapper().findAll()
	me.CertificationTypeId.DisplayMember = "CertificationType"
	me.CertificationTypeId.ValueMember = "CertificationTypeid"
	me.CertificationTypeId.FlatStyle = FlatStyle.Flat
	Me.LessonId.HeaderCell =  New DataGridViewAutoFilterComboColumnHeaderCell()
	me.LessonId.DataSource = new BusObjects.Mappers.LessonDBMapper().findAll()
	me.LessonId.DisplayMember = "LessonDescription"
	me.LessonId.ValueMember = "LessonId"
	me.LessonId.FlatStyle = FlatStyle.Flat
	Me.LessonIdAlternative.HeaderCell =  New DataGridViewAutoFilterComboColumnHeaderCell()
	me.LessonIdAlternative.DataSource = new BusObjects.Mappers.LessonDBMapper().findAll()
	me.LessonIdAlternative.DisplayMember = "LessonDescription"
	me.LessonIdAlternative.ValueMember = "LessonId"
	me.LessonIdAlternative.FlatStyle = FlatStyle.Flat
	
	
	end sub

	
#End Region

End Class

